<div id="page-title">
	<img src="<{$APPLICATION_URL}>/Themes/Default/Images/res-img/paysetting.png" width="50" height="50" class="left-align service-icn " alt="Google Checkout Settings">
				<h1 class="page-heading">Google Checkout Settings</h1>
</div>

<div id="breadcrumb" class="transparent">
	<p>
		<img src="<{$APPLICATION_URL}>/Themes/Default/Images/res-img/home.png" class="home" alt="Slappit.com"> <a href="<{$APPLICATION_URL}>/Browse/index" title="Slappit.com Homepage">Home</a> / <a href="<{$APPLICATION_URL}>/Browse/MyAccount/index" title="Slappit.com User Panel">Website Admin Panel</a> / <a href="<{$APPLICATION_URL}>/Browse/EcommercePanel/index" title="E-Commerce Panel">E-Commerce Panel</a> / <a href="<{$APPLICATION_URL}>/Browse/PaymentPanel/index" title="Payment Settings">Payment Settings</a> / <a href="#">Google Checkout Settings</a>	

</div>
<div id="main-content">
	<article id="main-article">
	<ul id="filtering-nav">
 <li><a href="<{$APPLICATION_URL}>/Browse/MyAccount/index" title="Back To Main User Panel">Back To Main User Panel</a></li>
		<li><a href="<{$APPLICATION_URL}>/Browse/EcommercePanel/index" title="Back To The E-Commerce Panel">Back To The E-Commerce Panel</a></li>
        <li><a href="<{$APPLICATION_URL}>/Browse/PaymentPanel/index" title="Back To The Panel Settings Panel">Back To The Panel Settings Panel</a></li>
        					<li><a href="<{$currentUser->getHomeUrl()}>" target="blank" title="View Website Homepage">View Website Homepage</a></li>
	</ul>
					<{if $isDemoMode == true}>
					<p><h3 style="font-family:arial"><font color="red">THIS IS DEMO MODE. YOU CANNOT EDIT ANY INFORMATION HERE</font></h3><br/></p>
					<{/if}>
	<form action="<{$APPLICATION_URL}>/Browse/PaymentPanel/edit/type/GoogleCheckout" method="post" id="save-content" name="save_content">
		<ol class="forms">
			<h3>Please fill your GoogleCheckout Settings</h3>
			<{if $isError == true}>
			<br/>
			<li>
				<p>
					<small><{$error}></small>
				</p>
			</li>
			<{/if}>
			<{if $googlecheckout_enable == "0"}>
			<br/>
			<li>
				<p>
					GOOGLE GATEWAY IS DISABLED.
				</p>
			</li>
			<{/if}>	
			<li>
				
			</li>		
			<li>
				<p>
					<small>(Please enter your  GoogleCheckout MerchantID)</small>
				</p></li>
			<li><label for="merchantid">Merchant Id</label><input type="text"
				id="merchantid" name="merchantid" value="<{$googlecheckout_merchantid}>"></li>			
<li>
				<p>
					<small>(Please enter your GoogleCheckout MerchantKey)</small>
				</p></li>
			<li><label for="merchantkey">Merchant Key</label><input type="text"
				id="merchantkey" name="merchantkey" value="<{$googlecheckout_merchantkey}>"></li>			
			<li>
			<input type="checkbox" name="googlecheckout_mode" <{if $googlecheckout_mode == "1"}> checked="checked"<{/if}> style="width:20px; margin-left:110px">Test Mode
			<input type="checkbox" name="googlecheckout_enable" <{if $googlecheckout_enable == "1"}> checked="checked"<{/if}> style="width:20px; margin-left:110px">Enable
			</li>
			
			<li><a id="submit-form" class="silver-button" <{if $isDemoMode == false}>onclick="return formSubmit();"<{/if}>>Save</a></li>
		</ol>
		<input type="hidden" id="actionForm" name="actionForm" value=""/>		
		<input type="hidden" id="type" name="type" value="<{$type}>"/>
		
		
	</form>
	<div id="service-page">
		<div class="clear"></div>
	</div>

	</article>

</div>
<div class="space transparent">
	<a href="#top" id="scroll-top"><img
		src="<{$APPLICATION_URL}>/Themes/Default/Images/res-img/top.png"
		alt="Back to the top"> </a>
</div>


<script type="text/javascript">
    function formSubmit()
    {
    	var theform = document.save_content;
    	
    	// Check Name
    	var name = theform.name.value;
    	if (name == ''){
			alert('Name is invalid');
			theform.name.focus();
			return false;
    	} 	
    	

    	theform.actionForm.value = 'submit';
    	theform.submit();
    	return true;
    }
</script>
